#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
using namespace std;
int n;
void deal(int x)
{
	for (int i = 14; i >= 0; i--) {
		if (pow(2, i) <= x) {
			if (i == 1)cout << "2";
			else if (i == 0)cout << "2(0)";
			else {
				cout << "2(";
				deal(i);
				cout << ")";
			}
			x -= (int)(pow(2, i) + 0.5);
			if (x != 0)cout << "+";
		}
	}
}
int main()
{
	cin >> n;
	deal(n);
	return 0;
}